<taglib name="html" />
<include file="$includeFile.public_header" /><!--或是"__ADMIN__/header"-->

<!--  右边内容   -->
<div class="list_tit">
    <span class="tit_left">您当前的位置：首页 > 文章管理 ></span>
    <a href="__URL__/add/mid/{$Think.get.mid}" class="tit_right">+添加文章</a>
</div>

<table cellpadding="0" cellspacing="0" border="0" width="100%" class="ul_bg">
    <form action="__URL__" method="get">
        <tr>
            <td width="80">按类别搜索：</td>
            <td width="90">
        <html:select name="listRows" options="pagesize" selected="listRows" /></td>
        <td width="110">
            <select class="sele_css" name="mid" style="width:120px;">
                {$all_menu}
            </select>
        </td>
        <td>&nbsp;</td>
        <td width="35">&nbsp;</td>
        <td width="85">&nbsp;

        </td>
        <td width="80">关键字搜索：</td>
        <td width="155"><input type="text" class="input_css" name="title" value="{$Think.get.title}" /></td>
        <td width="<php>if($_GET['title']){ echo 140;}else{echo 76;}</php>" >

        <php>if($_GET['title']){</php>
        <a href="__URL__/index/mid/{$Think.get.mid}" class="btn_css fr" style="display:block; margin-left:10px; text-align:center; line-height:22px;">撤销搜索</a>
        <php>}</php>
        <input type="submit" value="搜 索" class="btn_css fr" />
        </td>
        </tr>
    </form>
</table>

<div class="page_list"> 
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="list_table">
        <tr>
            <th width="40" class="center"><input type="checkbox" id="check_all" /></th>
            <th width="50"><a href="__URL__/index/order/id/sort/<php>if($_GET['order']=='id'&&$_GET['sort']=='asc'){echo 'desc';}else{echo 'asc';}</php>">ID<php>if($_GET['order']=='id'&&$_GET['sort']=='asc'){echo '↑';}elseif($_GET['order']=='id'){echo '↓';}</php></a></th>
            <th>文章标题</th>
            <th width="8%">作者</th>
            <th width="8%">来源</th>
            <th width="4%" style="text-align:center;">置顶</th>
            <th width="4%" style="text-align:center;">推荐</th>
            <th width="5%" style="text-align:center;">状态</th>
            <th width="6%" style="text-align:left;"><a href="__URL__/index/order/sort_order/sort/<php>if($_GET['order']=='sort_order'&&$_GET['sort']=='asc'){echo 'desc';}else{echo 'asc';}</php>">排序<php>if($_GET['order']=='sort_order'&&$_GET['sort']=='asc'){echo '↑';}elseif($_GET['order']=='sort_order'){echo '↓';}</php></a></th>
            <th width="160" style="text-align:center;">发布时间</th>
            <th width="66" style="text-align:center;">操作</th>
        </tr>
        <empty name="list">
            <tr>
                <td colspan="10" style="color:#FF0000;">暂时没有数据！</td>
            </tr>
            <else/>
            <volist name="list" id="art" key="count">
                <tr class="<eq name="mod" value="2">mod_color</eq>" >
                    <td class="center"><input type="checkbox" value="{$art.id}" name="cd_id[]" /></td>
                    <td>{$art.id}</td>
                    <td class="list_table_a"><span class="ajax_edit" onclick="return edit(this, 'title', '{$art.id}')">{$art.title}</span></td>
                    <td><span class="ajax_edit" onclick="return edit(this, 'author', '{$art.id}')">{$art.author|default='N/A'}</span></td>
                    <td><span class="ajax_edit" onclick="return edit(this, 'from', '{$art.id}')">{$art.from|default='N/A'}</span></td>
                    <td style="text-align:center;"><img class="cursor" src="<if condition="$art.is_top eq 1">__ADMIN__/images/yes.gif<else/>__ADMIN__/images/no.gif</if>" id="{$art.id}" field="is_top" onclick="return change($(this));" ></td>
                <td style="text-align:center;"><img class="cursor" src="<if condition="$art.is_rec eq 1">__ADMIN__/images/yes.gif<else/>__ADMIN__/images/no.gif</if>" id="{$art.id}" field="is_rec" onclick="return change($(this));" ></td>
                <td style="text-align:center;"><img class="cursor" src="<if condition="$art.status eq 1">__ADMIN__/images/yes.gif<else/>__ADMIN__/images/no.gif</if>" id="{$art.id}" field="status" onclick="return change($(this));" ></td>
                <td><span class="ajax_edit" onclick="return edit(this, 'sort_order', '{$art.id}', 'int')">{$art.sort_order|default='255'}</span></td>
                <td style="text-align:center;">{$art.add_time|date="Y-m-d H:i",###}</td>
                <td>
                    <a href="__URL__/edit/<php>if($_GET['mid']){</php>mid/{$Think.get.mid}/<php>}</php>id/{$art.id}/p/{$Think.get.p|default=1}" class="list_table_a" style="margin-right:5px;" title="编辑">编辑</a>
                    <a href="javascript:;" ID="{$art.id}" ACT="ajax_delete" onclick="return operation_one($(this));" class="list_table_a" title="删除">删除</a>
                </td>
                </tr>
            </volist>
        </empty>
    </table>

    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ul_bg">
        <tr>
            <td width="80"><span id="select_all" class="cursor">全选&nbsp;</span>|<span id="uncheck" class="cursor">&nbsp;反选</span></td>
            <td width="40">操作：</td>
            <td width="100">
                <select id="action" class="sele_css" style="width:90px;">
                    <option value="">选择操作</option>
                    <option value="ajax_delete">删除</option>
                </select>
            </td>
            <td width="70"><input type="submit" id="todo" value="执 行" class="btn_css" /></td>
            <td>&nbsp;</td>
            <td align="right" style="text-align:right;" class="subpage">{$page}</td>
        </tr>
    </table>
</div>

<include file="Public:footer" />
